home *** CD-ROM | disk | FTP | other *** search
Wrap
VERSION 5.00 Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.1#0"; "RICHTX32.OCX" Object = "{F8B79F91-138F-11D2-8AC4-FB7E6B9E0862}#1.0#0"; "PreviewNow.ocx" Begin VB.Form TestForm Caption = "Test form" ClientHeight = 4935 ClientLeft = 60 ClientTop = 345 ClientWidth = 6150 BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty LinkTopic = "Form1" ScaleHeight = 4935 ScaleWidth = 6150 StartUpPosition = 2 'CenterScreen Begin PNow.PreviewNow PreviewNow1 Left = 840 Top = 2160 _ExtentX = 582 _ExtentY = 609 End Begin PNow.PreviewDate PreviewDate1 Left = 120 Top = 2160 _ExtentX = 714 _ExtentY = 609 End Begin PNow.PreviewFont PreviewFont1 Left = 840 Top = 1680 _ExtentX = 714 _ExtentY = 609 End Begin PNow.PreviewFind PreviewFind1 Left = 240 Top = 1560 _ExtentX = 397 _ExtentY = 370 End Begin PNow.Messaging Messaging1 Left = 360 Top = 960 _ExtentX = 1958 _ExtentY = 900 End Begin RichTextLib.RichTextBox RichTextBox1 Height = 1335 Left = 120 TabIndex = 7 Top = 3360 Width = 5775 _ExtentX = 10186 _ExtentY = 2355 _Version = 327681 ScrollBars = 3 TextRTF = $"TestForm.frx":0000 End Begin VB.CommandButton Command1 Caption = "&Close" Height = 330 Index = 5 Left = 4440 TabIndex = 6 Top = 2880 Width = 1455 End Begin VB.CommandButton Command1 Caption = "PreviewNow" Height = 330 Index = 4 Left = 2400 TabIndex = 5 Top = 2880 Width = 1455 End Begin VB.CommandButton Command1 Caption = "PreviewDate" Height = 330 Index = 3 Left = 2400 TabIndex = 4 Top = 2400 Width = 1455 End Begin VB.CommandButton Command1 Caption = "PreviewFont" Height = 330 Index = 2 Left = 2400 TabIndex = 3 Top = 1920 Width = 1455 End Begin VB.CommandButton Command1 Caption = "PreviewFind" Height = 330 Index = 1 Left = 2400 TabIndex = 2 Top = 1440 Width = 1455 End Begin VB.CommandButton Command1 Caption = "Messaging" Height = 330 Index = 0 Left = 2400 TabIndex = 0 Top = 960 Width = 1455 End Begin VB.Label Label1 Alignment = 2 'Center Caption = "Select the example that you wish to view, when finished click on the &Close button." Height = 495 Left = 240 TabIndex = 1 Top = 240 Width = 5655 End Attribute VB_Name = "TestForm" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Private Sub Command1_Click(Index As Integer) Dim ReturnType As Long Select Case Index Case 0 ' messaging Messaging1.Buttons = msOKCancel Messaging1.HelpButton = False Messaging1.PictureType = msInformation Messaging1.Text = "This is an example of the messaging control." Messaging1.Title = "Message title" ReturnType = Messaging1.Message MsgBox (ReturnType) Case 1 ' previewfind PreviewFind1.Startup = cf_Centerscreen PreviewFind1.MatchCase = True PreviewFind1.PatternMatch = True PreviewFind1.ShowPage = FindPage PreviewFind1.ShowFind Case 2 ' previewfont PreviewFont1.FontBold = True PreviewFont1.FontTitle = "Example font" PreviewFont1.Startup = Centerscreen PreviewFont1.ShowFont If (PreviewFont1.CancelFont = True) Then MsgBox ("The cancel button was pressed.") Else MsgBox (PreviewFont1.FontName & " " & PreviewFont1.FontSize) End If Case 3 ' previewdate PreviewDate1.Startup = Centerscreen PreviewDate1.ShowDate If (PreviewDate1.CancelDate = True) Then MsgBox ("The cancel button was pressed.") Else MsgBox (PreviewDate1.DateFormat) End If Case 4 ' previewnow PreviewNow1.Text = RichTextBox1.Text PreviewNow1.TextRTF = RichTextBox1.TextRTF PreviewNow1.ShowPreview Case 5 ' close Unload Me End Select End Sub Private Sub PreviewFind1_FindIt(FindWord As String, MatchCase As Boolean, PatternMatch As Boolean, WholeWord As Boolean, Search As Integer) ' place code here to handle the event End Sub Private Sub PreviewFind1_ReplaceAll(FindWord As String, ReplaceWord As String, MatchCase As Boolean, PatternMatch As Boolean, WholeWord As Boolean, Search As Integer) ' place code here to handle the event End Sub Private Sub PreviewFind1_ReplaceIt(FindWord As String, ReplaceWord As String, MatchCase As Boolean, PatternMatch As Boolean, WholeWord As Boolean, Search As Integer) ' place code here to handle the event End Sub